export default ()=> {
    //safe => vue的this对象
    return {
        index: true,
        indexLabel: '序号',
        menuWidth: 200,
        translate: false,
        searchLabelWidth: 100,
        labelWidth: 110,
        tip: false,
        align: 'center',
        headerAlign: 'center',
        border: true,
        stripe: true,
        viewBtn: true,
        dateBtn: true,
        addBtn: false,
        selection: true,
        permission: {
            delCode: 'SYSTEM_FILE_DELETE',
            addCode: 'SYSTEM_FILE_ADD',
            editCode: 'SYSTEM_FILE_UPDATE',
            viewCode: 'SYSTEM_FILE_DETAIL'
        },
        column: [{
            label: "文件名称",
            prop: "name",
            search: true,
            slot: true,
            rules: [{
                required: true,
                message: "请输入文件名称",
                trigger: "blur"
            }]
        },

            {
                label: "文件大小",
                prop: "fileSize",
                editDetail: true,
                slot: true
            },

            {
                label: "文件扩展名",
                prop: "fileType",
                search: true,
                searchslot: true,
                rules: [{
                    required: true,
                    message: "请输入文件扩展名",
                    trigger: "blur"
                }]
            },

            {
                label: "上传时间",
                prop: "createTime",
                editDetail: true,
                slot: true
            },
            {
                label: "文件标识",
                prop: "mark",
                showColumn: false,
                editDetail: true,
                span: 24
            },
            {
                label: "备注",
                type: "textarea",
                prop: "note",
                showColumn: false,
                span: 24
            }],
    }
}